/*  1:   */ package org.jetbrains.lang.manifest.highlighting;
/*  2:   */ 
/*  3:   */

import com.intellij.lexer.Lexer;
import com.intellij.openapi.editor.colors.TextAttributesKey;
import com.intellij.openapi.fileTypes.SyntaxHighlighter;
import com.intellij.openapi.fileTypes.SyntaxHighlighterBase;
import com.intellij.openapi.fileTypes.SyntaxHighlighterFactory;
import com.intellij.openapi.project.Project;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.psi.tree.IElementType;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.lang.manifest.parser.ManifestLexer;

import java.util.Map;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */
/* 12:   */
/* 13:   */
/* 14:   */
/* 15:   */
/* 16:   */
/* 17:   */ 
/* 18:   */ public class ManifestSyntaxHighlighterFactory
/* 19:   */   extends SyntaxHighlighterFactory
/* 20:   */ {
/* 21:35 */   public static final SyntaxHighlighter HIGHLIGHTER = new SyntaxHighlighterBase()
/* 22:   */   {
/* 23:   */     private final Map<IElementType, TextAttributesKey> a;
/* 24:   */     
/* 25:   */     @NotNull
/* 26:   */     public Lexer getHighlightingLexer()
/* 27:   */     {
/* 28:47 */       void tmp7_4 = new ManifestLexer();
/* 29:47 */       if (tmp7_4 == null) {
/* 30:47 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/lang/manifest/highlighting/ManifestSyntaxHighlighterFactory$1", "getHighlightingLexer" }));
/* 31:   */       }
/* 32:47 */       return tmp7_4;
/* 33:   */     }
/* 34:   */     
/* 35:   */     @NotNull
/* 36:   */     public TextAttributesKey[] getTokenHighlights(IElementType paramAnonymousIElementType)
/* 37:   */     {
/* 38:53 */       TextAttributesKey[] tmp16_13 = pack((TextAttributesKey)this.a.get(paramAnonymousIElementType));
/* 39:53 */       if (tmp16_13 == null) {
/* 40:53 */         throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/lang/manifest/highlighting/ManifestSyntaxHighlighterFactory$1", "getTokenHighlights" }));
/* 41:   */       }
/* 42:53 */       return tmp16_13;
/* 43:   */     }
/* 44:   */   };
/* 45:   */   
/* 46:   */   @NotNull
/* 47:   */   public SyntaxHighlighter getSyntaxHighlighter(@Nullable Project paramProject, @Nullable VirtualFile paramVirtualFile)
/* 48:   */   {
/* 49:60 */     SyntaxHighlighter tmp3_0 = HIGHLIGHTER;
/* 50:60 */     if (tmp3_0 == null) {
/* 51:60 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/jetbrains/lang/manifest/highlighting/ManifestSyntaxHighlighterFactory", "getSyntaxHighlighter" }));
/* 52:   */     }
/* 53:60 */     return tmp3_0;
/* 54:   */   }
/* 55:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.jetbrains.lang.manifest.highlighting.ManifestSyntaxHighlighterFactory

 * JD-Core Version:    0.7.0.1

 */